package yagwl.server.fnd;

import java.util.logging.Logger;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;

import yagwl.service.util.svc.Context;

public class JspFilter extends AbstractFilter {
  private static Logger log = Logger.getLogger(JspFilter.class
      .getName());
  private UserService usrsvc;
  private User user;

  @Override
  protected boolean isSenderAuthorized() {
    usrsvc = UserServiceFactory.getUserService();
    user = usrsvc.getCurrentUser();
    log.fine("No need to authorize sender");
    return true;
  }

  @Override
  protected boolean isUserLoggingOut(Context ctx) {
    // TODO Auto-generated method stub
    return false;
  }

  @Override
  protected boolean isUserLoggingIn(Context ctx) {
    // TODO Auto-generated method stub
    return false;
  }

  @Override
  protected void setUserIdInContext(Context ctx) {
    // TODO Auto-generated method stub

  }

  @Override
  protected boolean isUserLoggedIn(Context ctx) {
    // TODO Auto-generated method stub
    return false;
  }

  @Override
  protected void setEmailInContext(Context ctx) {
    // TODO Auto-generated method stub

  }

  @Override
  protected void setNicknameInContext(Context ctx) {
    // TODO Auto-generated method stub

  }

  @Override
  protected boolean isUserIdMismatch(Context ctx) {
    // TODO Auto-generated method stub
    return false;
  }

  @Override
  protected boolean isRequestAuthorized() {
    // TODO Auto-generated method stub
    return true;
  }

}
